Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Now that's a hack #4522

Merged
merged 1 commit into from
Jun 16, 2017
Merged

Now that's a hack #4522

merged 1 commit into from
Jun 16, 2017

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre chadwhitacre commented Jun 16, 2017

This is extremely low-hanging fruit to be able to record Gratipay owners on gratipay.com per our new operating agreement in gratipay/inside.gratipay.com#1074.

@clone1018 clone1018 merged commit 7016c47 into master Jun 16, 2017
@clone1018
Copy link
Contributor

UPDATE participants SET is_owner = 1 WHERE username = 'whit537';

@chadwhitacre
Copy link
Contributor Author

Sorry @clone1018, this ain't MySQL. ;-)

gratipay::DATABASE=> select * from participants where is_owner;
┌──────────┬───────────────┬─────────────────┬───────┬──────────────┬──────────┬─────────┬──────────────────┬─
│ username │ session_token │ session_expires │ ctime │ claimed_time │ is_admin │ balance │ anonymous_giving │ 
├──────────┼───────────────┼─────────────────┼───────┼──────────────┼──────────┼─────────┼──────────────────┼─
└──────────┴───────────────┴─────────────────┴───────┴──────────────┴──────────┴─────────┴──────────────────┴─
(0 rows)

gratipay::DATABASE=> UPDATE participants SET is_owner = 1 WHERE username = 'whit537';
ERROR:  column "is_owner" is of type boolean but expression is of type integer
LINE 1: UPDATE participants SET is_owner = 1 WHERE username = 'whit5...
                                           ^
HINT:  You will need to rewrite or cast the expression.
gratipay::DATABASE=> UPDATE participants SET is_owner = true WHERE username = 'whit537';
UPDATE 1
gratipay::DATABASE=>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants